package com.quan.system.web.controller;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
	
	@Autowired
	private RabbitTemplate rabbitTemplate ;
	
	@Value("${server.port}")
	private String port ;

	@GetMapping(value = "/config")
	public Object realConfig() {
		System.out.println("读取仓库中的配置文件>>>>>["+port+"]");
		System.out.println(rabbitTemplate);
		
		return null ;
	}
	
}
